package org.example.myleet.p1011;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(110 == solution.shipWithinDays(new int[]{110}, 1));
        Assert.isTrue(15 == solution.shipWithinDays(new int[]{1,2,3,4,5,6,7,8,9,10}, 5));
        Assert.isTrue(6 == solution.shipWithinDays(new int[]{3,2,2,4,1,4}, 3));
        Assert.isTrue(3 == solution.shipWithinDays(new int[]{1,2,3,1,1}, 4));
        Assert.isTrue(100 == solution.shipWithinDays(new int[]{1,2,3,1,100}, 2));
        Assert.isTrue(107 == solution.shipWithinDays(new int[]{1,2,3,1,100}, 1));
        Assert.isTrue(303 == solution.shipWithinDays(new int[]{1,2,300,4,5,6,7,8,9,100}, 2));
    }
}
